package cn.com.nes.site.entity.vo.workOrder;

import cn.com.nes.site.entity.bo.workorder.GetTeamWorkOrderInstallPageBO;
import cn.com.nes.site.entity.vo.PageVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 查询我的施工队的安装工单分页VO
 *
 * @Author: ShenWei
 * @Date: 2024/07/15/14:34
 */
@Data
public class GetTeamWorkOrderInstallPageVO extends PageVO {

    public static final Integer UN_DISTRIBUTE = 0;  // 没分单
    public static final Integer DISTRIBUTE = 1;     // 已分单

    /**
     * 易修登录用户id
     */
    @NotNull(message = "易修登录用户id")
    private Long easyRepairUserId;

    /**
     * 分单状态 null-全部 0-未分单 1-已分单
     */
    @NotNull(message = "分单状态")
    private Integer distributeStatus;

    /**
     * 施工队id
     */
    private String teamId;

    /**
     * 项目uuid
     */
    @NotNull(message = "项目uuid")
    private String projectUuid;

    /**
     * 行政区划代码
     */
    private String areaCode;

    /**
     * 施工队员id
     */
    private Long teamMemberId;

    /**
     * 户主姓名/联系方式/门牌号
     */
    private String keyWord;

    // 扩展参数
    private List<String> teamMemberIdList;  // 队员id列表
    private Long projectId;                 // 项目id
    private List<Long> houseIdList;         // 房屋idList

    public GetTeamWorkOrderInstallPageBO convertToBo() {
        GetTeamWorkOrderInstallPageBO getTeamWorkOrderInstallPageBO = new GetTeamWorkOrderInstallPageBO();
        BeanUtils.copyProperties(this, getTeamWorkOrderInstallPageBO);
        return getTeamWorkOrderInstallPageBO;
    }
}
